import {
  createRouter,
  createWebHistory
} from 'vue-router'

const login = () => import('../views/login/login.vue')
const menu = () => import('../views/HomeView.vue')

const router = createRouter({
  history: createWebHistory(
    import.meta.env.BASE_URL),
  routes: [{
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      nane: 'login',
      component: login
    },
    {
      path: '/menu',
      name: 'menu',
      component: menu
    }
  ]
})

export default router